from django.db import transaction
from com.kjssoft.common.ant import XMLInitialHandler
from com.kjssoft.common.file.models import FileContentType

__author__ = 'Sea'

class FileInitialHandler(XMLInitialHandler):
    @transaction.commit_on_success
    def initial(self):
        FileContentType.objects.create(
            type = 1001,
            name = 'JPEG'
        ).save()

